package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.pojos.WmNews;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 10161
 */
public interface WmNewsService extends IService<WmNews> {
    /**
     * 查询文章列表信息
     *
     * @param dto
     * @return
     */
    public ResponseResult getList(WmNewsPageReqDto dto);

    /**
     * 文章提交
     *
     * @param dto
     * @return
     */
    public ResponseResult submitNews(WmNewsDto dto);

    /**
     * 查看文章详情
     *
     * @param id
     * @return
     */
    public ResponseResult getDetails(Integer id);


    /**
     * 文章删除
     * @param id
     * @return
     */
    public ResponseResult deleteNews( Integer id);

    /**
     * 文章上下架
     * @param dto
     * @return
     */
    public ResponseResult newsDownOrUp(WmNewsDto dto);

}
